﻿using System;
using System.Collections.Generic;

namespace Novel.Server.Models;

public partial class Chapter
{
    public int ChapterId { get; set; }

    public int NovelId { get; set; }

    public int Index { get; set; }

    public string Title { get; set; } = null!;

    public string Content { get; set; } = null!;

    public string? DraftTitle { get; set; }

    public string? DraftContent { get; set; }

    public DateTime? CreatedAt { get; set; }

    public DateTime? UpdatedAt { get; set; }

    public bool IsDeleted { get; set; }

    public bool Visibility { get; set; }

    public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>();

    public virtual Novel Novel { get; set; } = null!;
}
